package com.cxd.performance.controller;

import com.cxd.performance.service.SendPerformanceMailService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestPart;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.multipart.MultipartFile;

@RestController
@RequestMapping("/elead/performance")
public class PerformanceController {

    @Autowired
    private SendPerformanceMailService sendPerformanceMailService;

    @GetMapping("/generate-performance-score")
    public void generatePerformanceScore(@RequestPart MultipartFile file) {
        sendPerformanceMailService.generatePerformanceScore(file);
    }
}
